#set($title = "$display.alt($!domain.domain,'myForum')")
#parse("/home/parseHeader.html")
#parse("/home/_headerSearch.html")
<div class="pages_btns">
    <span class="postbtn" id="newtopic">版主: $display.alt($boardInfo.moderator,"空缺中")<a href="/post"><img alt="发新话题" src="/style/images/newtopic.gif" border="0"></a></span>
</div>
<div class="mainbox topiclist">
    <h1><a href="/forum/boards/$boardInfo.boardid">$boardInfo.boardname</a></h1>
    <form name="form" id="form" action="" method="post">
        #if ($null.isNull($boardInfo.topics) || $boardInfo.topics.size()==0)
        #else
        <table cellspacing="0" cellpadding="0">
            <thead class="category">
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        主题
                    </td>
                    <td class="author">
                        作者
                    </td>
                    <td class="nums">
                        回复/查看
                    </td>
                    <td class="lastpost">
                        最后发表
                    </td>
                </tr>
            </thead>
            <tbody>
                #foreach($topic in $boardInfo.topics)
                <tr>
                    <td class="folder">
                        <a title="新窗口打开" href="/topics/$topic.topicid" target="_blank"><img src="/style/images/folder_common.gif"></a>
                    </td>
                    <td>
                        <input class="checkbox" type="checkbox" name="chkTopicID" value="12"><a href="/topics/$topic.topicid">
                            <font color="$topic.highcolor">
                                $topic.title
                            </font>
                        </a>
                        #if($topic.attachicon=="A")
                        <label class="attach">
                            &nbsp;
                        </label>
                        #elseif($topic.attachicon=="I")
                        <label class="pic">
                            (&nbsp;图&nbsp;)&nbsp;
                        </label>
                        #else
                        <label>
                            $topic.attachicon
                        </label>
                        #end
                    </td>
                    <td class="author">
                        <cite>
                            <a href="uspaces/$topic.userid">$topic.nickname</a>
                        </cite>
                        $date.format("yyyy-MM-dd HH:mm:ss",$topic.createtime)
                    </td>
                    <td class="nums">
                        <span>$topic.replies</span>
                        / $topic.visits
                    </td>
                    <td class="lastpost">
                        <em><a href="/topics/$topic.topicid/999"> $date.format("yyyy-MM-dd HH:mm:ss",$topic.updatetime)</a></em>
                        <cite>
                            by <a href="uspaces/$topic.lastpostuser">$topic.lastnickname</a>
                        </cite>
                    </td>
                </tr>
                #end
            </tbody>
        </table>
        #end
        <div class="management">
            <input type="hidden" name="act">
            <label>
                <input class="checkbox" type="checkbox" name="chkall" onclick="checkall(this.form, 'chkTopicID')">全选
            </label>
            <button onclick="doManage('delete');return false;">
                删除主题
            </button>&nbsp;
            <button onclick="doManage('move');return false;">
                移动主题
            </button>&nbsp;
            <button onclick="doManage('highlight');return false;">
                高亮显示
            </button>&nbsp;
            <button onclick="doManage('close');return false;">
                关闭/打开主题
            </button>&nbsp;
            <button onclick="doManage('top');return false;">
                置顶/解除置顶
            </button>&nbsp;
            <button onclick="doManage('digest');return false;">
                加入/解除精华
            </button>
        </div>
<div id="pager" ></div>
        </div>
    </form>
</div>

<script type="text/javascript">
    var pagesCount = $boardInfo.page;
    var totalCount = $boardInfo.totalCount;
	var pageIndex=$pageIndex;
</script>
#includeJqueryUI
#includeJs(["jquery.pager","board/board"])
#includeCss(["myforum","pager"])
